import * as PIXI from 'pixi.js';

const defaultOptions = {
    width: 512,
    height: 512
}

export default class Stage {
    constructor(options) {
        this.options = Object.assign(defaultOptions, options);

        this.app = new PIXI.Application(this.options);
        this.stage = app.stage;

        if(options.ele) {
            options.ele.appendChild(this.app.view);
        }
    }

    add(img) {
        img.app = this.app;
    }
}
